<?php

/* What to print when the incorrect table name is in the URL (or
    no table has been specified) */

$sql = "SHOW TABLES FROM $mysql";
$result = mysql_query($sql);
if (!$result) {
    die("DB Error, could not list tables\n");
}
echo "<p>Please select the data table you wish to edit:</p>\n";
echo "<ul>\n";
while ($row = mysql_fetch_row($result)) {
    if ($row[0]!="users" && 
		$row[0]!="access_levels" &&
		$row[0]!="changes") {
	    echo "<li><a title='Edit' href='$editData_link?data={$row[0]}&input=" . $_GET['input'] ."'>{$row[0]}</a></li>\n";
    }
}
echo "</ul>\n";


?>
